package com.edu.eduservice.client;

import com.edu.eduservice.client.OpenFeign.OrderFileImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName OrderClient
 * @date 2022/9/27 9:00
 * @Version 1.0
 */
@Component
@FeignClient(name = "service-order", fallback = OrderFileImpl.class)
public interface OrderClient {

    //查询订单信息
    @GetMapping("/orderservice/order/isBuyCourse/{memberid}/{id}")
    public boolean isBuyCourse(@PathVariable("memberid") String memberid, @PathVariable("id") String id);

}
